<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新闻网站</title>
    <style> +
           td{text-align: center;color: brown;font-size: 18px;font-family: 华文楷体;}
           input{margin-left: 200px;margin-right: 20px; border-radius: 5px;}
       </style>
</head>
<body>
    <form action="log" method="post" id="l">
    <!--用户名：<input type="text" name="name"><br><br>-->
    <!--密码：<input type="password" name="password"><br><br>-->
    <!--验证码：<input type="text" name="yanzhengma"><br><br>br-->
        <input type="button" value="修改" id="x" style="color: red; font-size: 24px;">
        <input type="button" value="增加" id="z" style="color: blueviolet; font-size: 24px;">
        <input type="button" value="删除" id="s" style="color:rosybrown; font-size: 24px;">
        <input type="button" value="查看" id="c" style="color: darkorange; font-size: 24px;"><BR><BR>
        <div id="ck">
            <input type="checkbox" id="all" onclick="checkAll()"><BR><BR>
            <input type="checkbox" name="checkname[]"><BR><BR>
            <input type="checkbox" name="checkname[]">
        </div>
    </form>
    <script type="text/javascript">
        var a = document.getElementById("x");
        var b = document.getElementById("z");
        var c = document.getElementById("s");
        var d = document.getElementById("c");
        var all=document.getElementById("all");
        // var one=document.getElementsByName("checkname[]");
        a.onclick=function () {
            window.open('modification.html');
        }
        b.onclick=function () {
            window.open('add.html');
        }
        c.onclick=function () {
            function deleteRow(o) {

                      var r=o.parentNode.parentNode.rowIndex;
                    document.getElementById('tb').deleteRow(r);
            }
             }
        }
        d.onclick=function () {
            window.open('view.html');
        }
    </script>
</body>
</html>